package exam;

public class Fizz {
	int x = 5;
	
	public static void main(String[] args) {
		 Fizz f1 = new Fizz();
		Fizz f2 = new Fizz();
		Fizz f3 = FizzSwitch(f1,f2);
		System.out.println((f1==f3) + " " + (f1.x==f3.x));
		System.out.println(f1.x + " " + f3.x);
		System.out.println(f1==f3);
	}
	
	static Fizz FizzSwitch(Fizz x, Fizz y) {
		 Fizz z = x;
		z.x = 6;
		return z;
	}
}
